<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_name" class="form-control" name="row[user_name]" type="text" value="{$row.user_name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Packages_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-packages_id" class="form-control" name="row[packages_id]" type="text" value="{$row.packages_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rebate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rebate" class="form-control" step="0.01" name="row[rebate]" type="number" value="{$row.rebate|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-cate_id" class="form-control selectpicker" name="row[cate_id]">
                {foreach name="cateIdList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.cate_id"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jiesuan_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-jiesuan_type" class="form-control selectpicker" name="row[jiesuan_type]">
                {foreach name="jiesuanList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.jiesuan_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-card_type" class="form-control selectpicker" name="row[card_type]">
                {foreach name="cardTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.card_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_channel')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-pay_channel" class="form-control selectpicker" name="row[pay_channel]">
                {foreach name="payChannelList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.pay_channel"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-jsgz" class="control-label col-xs-12 col-sm-2">结算规则:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-jsgz" class="form-control" name="row[jsgz]">{$row.jsgz|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label for="c-spxz" class="control-label col-xs-12 col-sm-2">商品限制:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-spxz" class="form-control" name="row[spxz]">{$row.spxz|htmlentities}</textarea>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_extend')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_callback" class="form-control selectpicker" name="row[is_extend]">
                {foreach name="isExtendList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_extend"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Monthly')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-monthly" class="form-control" name="row[monthly]" type="text" value="{$row.monthly|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flow')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-flow" class="form-control" name="row[flow]" type="text" value="{$row.flow|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Call_minutes')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-call_minutes" class="form-control" name="row[call_minutes]" type="text" value="{$row.call_minutes|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pact')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pact" class="form-control" name="row[pact]" type="text" value="{$row.pact|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age" class="form-control" name="row[age]" type="text" value="{$row.age|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Demand')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-demand" class="form-control" name="row[demand]" type="text" value="{$row.demand|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label for="c-photos" class="control-label col-xs-12 col-sm-2">{:__('Photos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-photos" data-rule="" class="form-control" size="50" name="row[photos]" type="text" value="{$row.photos}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-photos" class="btn btn-danger faupload" data-input-id="c-photos" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-photos"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-photos" class="btn btn-primary fachoose" data-input-id="c-photos" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-photos"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-photos"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-photoLists" class="control-label col-xs-12 col-sm-2">{:__('Photolists')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-photoLists" data-rule="" class="form-control" size="50" name="row[photoLists]" type="text" value="{$row.photoLists}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-photoLists" class="btn btn-danger faupload" data-input-id="c-photoLists" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-photoLists"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-photoLists" class="btn btn-primary fachoose" data-input-id="c-photoLists" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-photoLists"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-photoLists"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-day" class="form-control selectpicker" name="row[day]">
                {foreach name="dayList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.day"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Epact_set_meal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-epact_set_meal" class="form-control" name="row[epact_set_meal]" type="text" value="{$row.epact_set_meal|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ciyue_set_meal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ciyue_set_meal" class="form-control" name="row[ciyue_set_meal]" type="text" value="{$row.ciyue_set_meal|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xiadanxuzhi')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xiadanxuzhi" class="form-control" name="row[xiadanxuzhi]" type="text" value="{$row.xiadanxuzhi|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_rebate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_rebate" class="form-control" name="row[user_rebate]" type="text" value="{$row.user_rebate|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hexiao_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hexiao_day" class="form-control" name="row[hexiao_day]" type="text" value="{$row.hexiao_day}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
